    package com.example.project01.model;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.leon.model.Model;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

import java.sql.Timestamp;


@Data
public class Feedback implements Model {

    @Schema(description = "主键ID")
    private Long id;
    @Schema(description = "联系方式")
    private String liaison;
    @Schema(description = "反馈内容")
    private String content;
    @Schema(description = "反馈图片")
    private String image;
    @Schema(description = "反馈状态")
    private String state;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "反馈时间")
    private Timestamp reactionAt;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @Schema(description = "处理时间")
        private Timestamp solveAt;

    @Getter
    @AllArgsConstructor
    public enum StateEnum {
        RESOLVED("已解决"),
        UNSETTLED("未解决");
        private final String description;
    }

}
